package com.tarena.lbs.mapper;

import com.tarena.lbs.pojo.dto.ContentQuery;
import com.tarena.lbs.pojo.entity.Content;
import com.tarena.lbs.pojo.vo.ContentVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper

public interface ContentMapper {
    void insert(Content content);


    List<ContentVO> selectContent(ContentQuery contentQuery);


    void update(Content content);

    Content selectById(Integer id);

    void deleteById(Integer id);
}
